home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
090
/
byt85nov.lbr
/
RINTMATH.C
< prev
next >
Wrap
C/C++ Source or Header
|
1985-11-23
|
896b
|
40 lines
/* intmath.c */
#include "stdio.h"
#define COUNT 10000
main()
{
int i;
register int j, k;
#include "startup"
for (i = 0; i < COUNT; ++i) {
j = 240; k = 15;
/* test byte-byte combinations */
j = (k * ( j / k ));
j = (k * ( j / k ));
j = ( k+k+k+k+ k+k+k+k+ k+k+k+k+ k+k+k+k );
k = (j -k-k-k-k -k-k-k-k -k-k-k-k -k-k-k );
/* test byte-word combinations */
j = (j << 4); k = (k << 4);
j = (k * ( j / k ));
j = (k * ( j / k ));
j = ( k+k+k+k+ k+k+k+k+ k+k+k+k+ k+k+k+k );
k = (j -k-k-k-k -k-k-k-k -k-k-k-k -k-k-k );
/* test word-word combinations */
j = (j << 4); k = (k << 4);
j = (k * ( j / k ));
j = (k * ( j / k ));
j = ( k+k+k+k+ k+k+k+k+ k+k+k+k+ k+k+k+k );
k = (j -k-k-k-k -k-k-k-k -k-k-k-k -k-k-k );
}
#include "done"
}